package net.huashitong.taskGroup.databean;

/**
 * 节点表表头
 */
public enum NodeHeaders {

    projectName("projectName","项目名称"),
    nodeId("nodeId","节点ID"),
    nodeNames("nodeNames","节点名称"),
    baseDetail("baseDetail","基本情况"),
    planTime("planTime","计划用时"),
    factTime("factTime","实际用时"),
    planBeginTime("planBeginTime","计划开始时间"),
    planEndTime("planEndTime","计划结束时间"),
    planBeginDate("planBeginDate","实际开始时间"),
    factFinishDate("factFinishDate","实际结束时间"),
    avTime("avTime","节点平均用时"),
    resUser("resUser","责任人"),
    resUserPhone("resUserPhone","责任人电话"),
    operatorUser("operatorUser","经办人"),
    operatorPhone("operatorPhone","经办人电话"),
    resDept("resDept","责任单位"),
    earlyDays("earlyDays","逾期天数"),
    messageNum("messageNum","发送短信次数"),
    remark("remark","备注");
    private String code;
    private String value;

    NodeHeaders(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public static NodeHeaders  getValues(String code)
    {
        for (NodeHeaders item: values())
        {
            if(item.getCode().equals(code))
            {
                return  item;
            }
        }

        return null;
    }

}
